package com.twinkle.rpc.client;


import com.twinkle.rpc.client.cache.ServiceCache;
import com.twinkle.rpc.client.proxy.ClientProxy;
import com.twinkle.rpc.common.pojo.User;
import com.twinkle.rpc.common.service.AdminService;
import com.twinkle.rpc.common.service.UserService;
import lombok.extern.slf4j.Slf4j;

import java.util.List;
import java.util.Map;


/**
 * @author wxx
 * @version 1.0
 * @create 2024/2/6 18:39
 */

public class TestClient {
    public static void main(String[] args) {
        ClientProxy clientProxy=new ClientProxy();
//        UserService proxy=clientProxy.getProxy(UserService.class);
//        User user1 = proxy.getUserByUserId(1);
//        System.out.println("从服务端得到的user1= "+user1.toString());
//        User user2 = proxy.getUserByUserId(2);
//        System.out.println("从服务端得到的user2= "+user2.toString());
        AdminService proxy = clientProxy.getProxy(AdminService.class);
        String info = proxy.deleteByUserId(89);
        System.out.println(info);

    }
}
